package com.leyou.pay.api;

import com.leyou.pay.entity.AliPayParam;
import com.leyou.pay.entity.PayState;
import com.leyou.pay.entity.WxPayParam;
import org.springframework.web.bind.annotation.*;

@RequestMapping("getLyPay")
public interface LyPayApi {

    @PostMapping("wxPay")
    String wxPay(@RequestBody WxPayParam payParam);

    @PostMapping("aliPay")
    String aliPay(@RequestBody AliPayParam payParam);

    @PostMapping("queryWxStatus")
    PayState queryPayStatus(@RequestParam("orderId") Long orderId);
}
